<?xml version="1.0" encoding="windows-1252"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
	content="text/html; charset=windows-1252" />
<title>Person List</title>
 <link type="text/css" rel="stylesheet" media="all" href="/css/bootstrap.css" />
	<link type="text/css" rel="stylesheet" media="all" href="/css/bootstrap-responsive.css" />
	<link type="text/css" rel="stylesheet" media="all" href="/css/jquery-ui-1.8.17.custom.css" />
</head>
<body>
<h3>Person List</h3>
#if ($person.isEmpty()) No person #else

<table class="table table-striped table-condensed">
	<tr>
		<td>None</td>
		<td><input type="button" class="btn btn-danger"
			onClick="javascript:window.opener.document.getElementById('child').value='';window.opener.document.getElementById('childName').value='None';window.close();"
			value="Set" /></td>
	</tr>
	#foreach ($i in $list)
	<form action="/person/$person.id/child" method="post">
	<tr>
		<td>$i.firstName</td>
		<td><!-- input type="button" onClick="javascript:window.opener.document.getElementById('child').value='$i.id';window.opener.document.getElementById('childName').value='$i.firstName';window.close();" value="Set"/ -->
		<input type="hidden" name="childId" id="child" value="$i.id" /> <input class="btn btn-primary" type="submit" value="add" onclick="" /></td>
	</tr>
	</form>
	#end
</table>
#end
</body>
</html>
